package com.xiaoc.bulldozer.common.dto;

import com.xc.framework.common.page.PageDto;
import com.xiaoc.bulldozer.common.model.User;

/**
 * 用户信息
 * 
 * @author parcel
 * @date 2014-05-20 17:26:51
 */
public class UserDto extends User {

    private static final long serialVersionUID = 1969541134624518187L;

    private Integer roleId;

	private String roleIds;

	private String[] arrRoleId;

	private String roleNames;

	private Integer onlineStatus;

	private Integer pageSize = PageDto.PAGE_SIZE;

	private Integer page = 1;
	
	private String newPassword;

	public Integer getStart() {
		return ((page > 0 ? page : 1) - 1) * pageSize;
	}

	public Integer getRoleId() {
		return roleId;
	}

	public void setRoleId(Integer roleId) {
		this.roleId = roleId;
	}

	public String getRoleIds() {
		return roleIds;
	}

	public void setRoleIds(String roleIds) {
		this.roleIds = roleIds;
	}

	public String[] getArrRoleId() {
		return arrRoleId;
	}

    public void setArrRoleId(String[] arrRoleId) {
		this.arrRoleId = arrRoleId;
	}

	public String getRoleNames() {
		return roleNames;
	}

	public void setRoleNames(String roleNames) {
		this.roleNames = roleNames;
	}

	public Integer getOnlineStatus() {
		return onlineStatus;
	}

	public void setOnlineStatus(Integer onlineStatus) {
		this.onlineStatus = onlineStatus;
	}

	public Integer getPageSize() {
		return pageSize;
	}

	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}

	public Integer getPage() {
		return page;
	}

	public void setPage(Integer page) {
		this.page = page;
	}

    public String getNewPassword() {
        return newPassword;
    }

    public void setNewPassword(String newPassword) {
        this.newPassword = newPassword;
    }
    
}
